#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <math.h>


void judge(double x, double y)
{
	if ((pow(x - 2, 2) + pow(y - 2, 2)) <= 1)
	{
		printf("10\n");
	}
	else if ((pow(x + 2, 2) + pow(y - 2, 2)) <= 1)
	{
		printf("10\n");
	}
	else if ((pow(x - 2, 2) + pow(y + 2, 2)) <= 1)
	{
		printf("10\n");
	}
	else if ((pow(x + 2, 2) + pow(y + 2, 2)) <= 1)
	{
		printf("10\n");
	}
	else
		printf("0\n");
}

int main()
{
	double x, y;
	scanf("%lf%lf", &x, &y);
	judge(x, y);
	return 0;
}